package cc.mallet.topics.gui;

import java.io.Serializable;

//import org.tartarus.snowball.SnowballStemmer;
//import org.tartarus.snowball.ext.englishStemmer;

import cc.mallet.pipe.Pipe;
import cc.mallet.types.Instance;
import cc.mallet.types.Token;
import cc.mallet.types.TokenSequence;

public class TokenSequenceStemmer extends Pipe implements Serializable {

	private static final long serialVersionUID = 2014082601L;

	public TokenSequenceStemmer() {
	}

	@Override
	public Instance pipe(Instance inst) {
//		SnowballStemmer stemmer = new englishStemmer();
//		TokenSequence in = (TokenSequence) inst.getData();
//
//		for (Token token : in) {
//			stemmer.setCurrent(token.getText());
//			stemmer.stem();
//			token.setText(stemmer.getCurrent());
//		}

		return inst;
	}

}
